
package com.jf.cloud.api.auth.feign;

import com.jf.cloud.common.feign.FeignInsideAuthConfig;
import com.jf.cloud.common.response.ServerResponseEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 菠萝凤梨
 * @date 2022/1/20 15:11
 */
@FeignClient(value = "jfcloud-auth",contextId ="password")
public interface PasswordFeignClient {

    /**
     * 获取解密后的密码
     * @param password 加密的密码
     * @return 解密之后的密码
     */
    @GetMapping(value = FeignInsideAuthConfig.FEIGN_URL_PREFIX + "/insider/password/getDecryptPassword")
    ServerResponseEntity<String> getDecryptPassword(@RequestParam("password") String password);
}
